Base Message List Adapter
Constructors
Link copied to clipboard
Constructor
Link copied to clipboard
Constructor
Link copied to clipboard
open fun BaseMessageListAdapter(@Nullable channel: GroupChannel, useMessageGroupUI: Boolean)
Content copied to clipboard
Constructor
Link copied to clipboard
open fun BaseMessageListAdapter( @Nullable channel: GroupChannel, useMessageGroupUI: Boolean, useReverseLayout: Boolean)
Content copied to clipboard
Constructor
Link copied to clipboard
open fun BaseMessageListAdapter(@Nullable channel: GroupChannel, @NonNull messageListUIParams: MessageListUIParams)
Content copied to clipboard
Constructor
Functions
Link copied to clipboard
Returns a callback to be invoked when the feedback rating is clicked.
Link copied to clipboard
Returns the total number of items in the data set held by the adapter.
Link copied to clipboard
Return the view type of the MessageViewHolder at
position
for the purposes of view recycling.Link copied to clipboard
Returns a callback to be invoked when the mentioned user is clicked.
Link copied to clipboard
open fun getOnListItemClickListener(): OnIdentifiableItemClickListener<BaseMessage>
Content copied to clipboard
Returns a callback to be invoked when the itemView is clicked
Link copied to clipboard
open fun getOnListItemLongClickListener(): OnIdentifiableItemLongClickListener<BaseMessage>
Content copied to clipboard
Returns a callback to be invoked when the itemView is long clicked and held.
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: MessageViewHolder, position: Int)
Content copied to clipboard
Called by RecyclerView to display the data at the specified position.
open fun onBindViewHolder( @NonNull holder: MessageViewHolder, position: Int, @NonNull payloads: List<Any>)
Content copied to clipboard
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): MessageViewHolder
Content copied to clipboard
Called when RecyclerView needs a new MessageViewHolder of the given type to represent an item.
Link copied to clipboard
Link copied to clipboard
Sets channel that related with a list of messages
Link copied to clipboard
open fun setFeedbackRatingClickListener(@Nullable feedbackRatingClickListener: OnFeedbackRatingClickListener)
Content copied to clipboard
Register a callback to be invoked when the feedback rating is clicked.
Link copied to clipboard
open fun setMentionClickListener(@Nullable listener: OnItemClickListener<User>)
Content copied to clipboard
Register a callback to be invoked when the mentioned user is clicked.
Link copied to clipboard
open fun setMessageDisplayDataProvider(@Nullable messageDisplayDataProvider: MessageDisplayDataProvider)
Content copied to clipboard
Sets MessageDisplayDataProvider, which is used to generate data before they are sent or rendered.
Link copied to clipboard
open fun setOnListItemClickListener(@Nullable listener: OnIdentifiableItemClickListener<BaseMessage>)
Content copied to clipboard
Register a callback to be invoked when the itemView is clicked.
Link copied to clipboard
open fun setOnListItemLongClickListener(@Nullable listener: OnIdentifiableItemLongClickListener<BaseMessage>)
Content copied to clipboard
Register a callback to be invoked when the itemView is long clicked and held.
Link copied to clipboard
Animates the view holder with the corresponding position.
Animates the view holder with the corresponding message id.
Properties
Link copied to clipboard
Link copied to clipboard
open var emojiReactionLongClickListener: OnEmojiReactionLongClickListener
Content copied to clipboard
Link copied to clipboard
open var emojiReactionMoreButtonClickListener: OnItemClickListener<BaseMessage>
Content copied to clipboard
Link copied to clipboard
protected open var feedbackRatingClickListener: OnFeedbackRatingClickListener
Content copied to clipboard
Link copied to clipboard